home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / emulator / bsvc-1.000 / bsvc-1 / bsvc-1.0.4 / src / Sim68000 / devices / tcl2scr < prev   
Text File  |  1995-07-26  |  204b  |  25 lines

  1. sed '
  2. /^!/d
  3. /^$/d
  4. s/\\/\\\\/g
  5. s/\\$//g
  6. s/"/\\"/g
  7. s/^/"/
  8. : test
  9. /\\$/b slash
  10. s/$/\\n"/
  11. p
  12. d
  13. : slash
  14. n
  15. /^!/d
  16. /^$/d
  17. s/"/\\"/g
  18. s/\\\\/\\/g
  19. s/\\n/\\\\n/g
  20. s/\\t/\\\\t/g
  21. s/\\f/\\\\f/g
  22. s/\\b/\\\\b/g
  23. b test' "$@"
  24.  
  25.